﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QQRobot.Services.Models.Response
{
    /// <summary>
    /// 大乐透响应结果
    /// </summary>
    public class BigLottoResponse
    {
        [JsonProperty("dataFrom")]
        public string DataFrom { get; set; }

        [JsonProperty("emptyFlag")]
        public bool EmptyFlag { get; set; }

        [JsonProperty("errorCode")]
        public string ErrorCode { get; set; }

        [JsonProperty("errorMessage")]
        public string ErrorMessage { get; set; }

        [JsonProperty("success")]
        public bool Success { get; set; }

        [JsonProperty("value")]
        public Value Value { get; set; }
    }

    public class Value
    {
        [JsonProperty("lastPoolDraw")]
        public LastPoolDraw LastPoolDraw { get; set; }

        [JsonProperty("list")]
        public List<LotteryListItem> List { get; set; }

        [JsonProperty("pageNo")]
        public int PageNo { get; set; }

        [JsonProperty("pageSize")]
        public int PageSize { get; set; }

        [JsonProperty("pages")]
        public int Pages { get; set; }

        [JsonProperty("total")]
        public int Total { get; set; }
    }

    public class LastPoolDraw
    {
        [JsonProperty("lotteryDrawNum")]
        public string LotteryDrawNum { get; set; }

        [JsonProperty("lotteryDrawResult")]
        public string LotteryDrawResult { get; set; }

        [JsonProperty("lotteryDrawTime")]
        public string LotteryDrawTime { get; set; }

        [JsonProperty("lotteryGameName")]
        public string LotteryGameName { get; set; }

        [JsonProperty("lotteryGameNum")]
        public string LotteryGameNum { get; set; }

        [JsonProperty("poolBalanceAfterdraw")]
        public string PoolBalanceAfterdraw { get; set; }

        [JsonProperty("prizeLevelList")]
        public List<PrizeLevel> PrizeLevelList { get; set; }
    }

    public class LotteryListItem
    {
        [JsonProperty("lotteryGameName")]
        public string LotteryGameName { get; set; }

        [JsonProperty("lotteryGameNum")]
        public string LotteryGameNum { get; set; }

        [JsonProperty("lotteryDrawNum")]
        public string LotteryDrawNum { get; set; }

        [JsonProperty("lotteryDrawResult")]
        public string LotteryDrawResult { get; set; }

        [JsonProperty("lotterySuspendedFlag")]
        public int LotterySuspendedFlag { get; set; }

        [JsonProperty("lotteryDrawStatus")]
        public int LotteryDrawStatus { get; set; }

        [JsonProperty("lotterySaleEndtime")]
        public string LotterySaleEndtime { get; set; }

        [JsonProperty("lotterySaleBeginTime")]
        public string LotterySaleBeginTime { get; set; }

        [JsonProperty("lotterySaleEndTimeUnix")]
        public object LotterySaleEndTimeUnix { get; set; }

        [JsonProperty("lotteryDrawTime")]
        public string LotteryDrawTime { get; set; }

        [JsonProperty("lotteryPaidBeginTime")]
        public string LotteryPaidBeginTime { get; set; }

        [JsonProperty("lotteryPaidEndTime")]
        public string LotteryPaidEndTime { get; set; }

        [JsonProperty("estimateDrawTime")]
        public string EstimateDrawTime { get; set; }

        [JsonProperty("verify")]
        public int Verify { get; set; }

        [JsonProperty("lotteryPromotionFlag")]
        public int LotteryPromotionFlag { get; set; }

        [JsonProperty("isGetKjpdf")]
        public int IsGetKjpdf { get; set; }

        [JsonProperty("isGetXlpdf")]
        public int IsGetXlpdf { get; set; }

        [JsonProperty("pdfType")]
        public int PdfType { get; set; }

        [JsonProperty("lotteryUnsortDrawresult")]
        public string LotteryUnsortDrawresult { get; set; }

        [JsonProperty("poolBalanceAfterdraw")]
        public string PoolBalanceAfterdraw { get; set; }

        [JsonProperty("poolBalanceAfterdrawRj")]
        public string PoolBalanceAfterdrawRj { get; set; }

        [JsonProperty("drawFlowFund")]
        public string DrawFlowFund { get; set; }

        [JsonProperty("drawFlowFundRj")]
        public string DrawFlowFundRj { get; set; }

        [JsonProperty("totalSaleAmount")]
        public string TotalSaleAmount { get; set; }

        [JsonProperty("totalSaleAmountRj")]
        public string TotalSaleAmountRj { get; set; }

        [JsonProperty("lotteryEquipmentCount")]
        public int LotteryEquipmentCount { get; set; }

        [JsonProperty("lotteryGamePronum")]
        public int LotteryGamePronum { get; set; }

        [JsonProperty("matchList")]
        public List<object> MatchList { get; set; }

        [JsonProperty("prizeLevelList")]
        public List<PrizeLevel> PrizeLevelList { get; set; }

        [JsonProperty("prizeLevelListRj")]
        public List<object> PrizeLevelListRj { get; set; }

        [JsonProperty("termList")]
        public List<object> TermList { get; set; }

        [JsonProperty("termResultList")]
        public List<object> TermResultList { get; set; }

        [JsonProperty("ruleType")]
        public int RuleType { get; set; }

        [JsonProperty("vtoolsConfig")]
        public object VtoolsConfig { get; set; }

        [JsonProperty("surplusAmount")]
        public string SurplusAmount { get; set; }

        [JsonProperty("surplusAmountRj")]
        public string SurplusAmountRj { get; set; }

        [JsonProperty("lotteryPromotionFlagRj")]
        public int LotteryPromotionFlagRj { get; set; }

        [JsonProperty("drawPdfUrl")]
        public string DrawPdfUrl { get; set; }

        [JsonProperty("lotteryNotice")]
        public int LotteryNotice { get; set; }

        [JsonProperty("lotteryDrawStatusNo")]
        public string LotteryDrawStatusNo { get; set; }

        [JsonProperty("lotteryNoticeShowFlag")]
        public int LotteryNoticeShowFlag { get; set; }
    }

    public class PrizeLevel
    {
        [JsonProperty("prizeLevel")]
        public string PrizeLevelName { get; set; }

        [JsonProperty("stakeCount")]
        public string StakeCount { get; set; }

        [JsonProperty("stakeAmount")]
        public string StakeAmount { get; set; }

        [JsonProperty("stakeAmountFormat")]
        public string StakeAmountFormat { get; set; }

        [JsonProperty("totalPrizeamount")]
        public string TotalPrizeamount { get; set; }

        [JsonProperty("sort")]
        public int Sort { get; set; }

        [JsonProperty("awardType")]
        public int AwardType { get; set; }

        [JsonProperty("lotteryCondition")]
        public object LotteryCondition { get; set; }

        [JsonProperty("group")]
        public string Group { get; set; }
    }
}
